﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;

namespace ConcertSpace
{
    public partial class Browser : Form
    {
        public void afficherPage(string url)
        {
            try
            {
                webBrowser1.Url = new System.Uri(url);
            }
            catch (Exception e)
            {
                if (Application.CurrentCulture.TwoLetterISOLanguageName == "fr")
                {
                    MessageBox.Show("Une erreur s'est produite lors du chargement de la page Web", "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
                else
                {
                    MessageBox.Show("An error occured while loading the web page...", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }
            }
        }

        public Browser()
        {
            InitializeComponent();
        }

        private void Browser_Load(object sender, EventArgs e)
        {

        }

        private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
        {

        }
    }
}
